package com.ledim.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import com.ledim.adapter.base.LedimBaseListAdapter;
import com.ledim.bean.ChatRoomBean;
import com.ledim.bean.LedimChoiceCardBean;
import com.ledim.ledimview.SearchRelatedListViewItemView;
import com.letv.android.young.client.R;
import java.util.ArrayList;

import static com.ledim.utils.ConstantUtil.CardType.room;

public class SearchRelatedListViewAdapter extends LedimBaseListAdapter<LedimChoiceCardBean> {

    public String mRoomId;

    public SearchRelatedListViewAdapter(Context context, ArrayList<LedimChoiceCardBean> list,
                                        String roomId) {
        super(context);
        setMoreDatas(list);
        this.mRoomId = roomId;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        convertView = mInflater.inflate(R.layout.item_search_result_related_listview, null);
        ((SearchRelatedListViewItemView) convertView).bindData(getItem(position), mRoomId);
        return convertView;
    }

}
